package de.ubschmidt.capi;

import java.nio.ByteBuffer;

/**
 */
public class DataB3Req
        extends CapiActiveMessage
        implements NcciProperty {

    private int _ncci;

    /**
     * Creates a new DATA_B3_REQ CAPI message.
     */
    public DataB3Req() {
        super(Command.DATA_B3_REQ);
    }

    /** {@inheritDoc} */
    public void setNcci(final int ncci) {
        _ncci = ncci;
    }

    /** {@inheritDoc} */
    public int getNcci() {
        return _ncci;
    }

    /** {@inheritDoc} */
    protected void serializeTo(final ByteBuffer byteBuffer) {
    }

    /** {@inheritDoc} */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();

        sb.append(getClass().getSimpleName());
        sb.append("[").append(super.toString());
        sb.append(" ...");
        sb.append("]");

        return sb.toString();
    }

}
